public class ThreadDemo14 {

    public static void main(String[] args) {
        Object locker=new Object();
        Thread thread=new Thread(()->{
           synchronized(locker){
               synchronized (locker){
                   System.out.println("可重入锁");
               }
           }
        });
        thread.start();
    }
}
